package io.gitee.hefren.hhdemoapollo;

import jakarta.annotation.Resource;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.core.env.Environment;

@SpringBootApplication
public class HhdemoapolloApplication {

    public static void main(String[] args) {
        SpringApplication.run(HhdemoapolloApplication.class, args);
    }

    @Resource
    private Environment environment;

    @Bean
    public ApplicationRunner runDemo() {
        return (args) -> {
            System.out.println(environment);
        };
    }
}
